Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Move/Examples] Switch to datatest #18813

Merged
merged 3 commits into from
Jul 26, 2024
Merged

[Move/Examples] Switch to datatest #18813

merged 3 commits into from
Jul 26, 2024

Conversation

amnn
Copy link
Member

@amnn amnn commented Jul 26, 2024

Description

Use datatest-stable to find all the Move examples we might want to build and test, instead of stashing this away in a rust test.

Test plan

sui$ cargo nextest run -p sui-framework-tests --test move_tests
  • CI

Closes #18802


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

@amnn amnn requested review from tnowacki, bmwill and a team July 26, 2024 16:58
@amnn amnn self-assigned this Jul 26, 2024
Copy link

vercel bot commented Jul 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2024 6:49pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jul 26, 2024 6:49pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jul 26, 2024 6:49pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Jul 26, 2024 6:49pm

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#[cfg(not(msim))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the msim cfgs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try without, I borrowed them from the PTB tests.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works fine without! It does get re-run during simtest, which is not strictly necessary, but that seems okay.

amnn added 3 commits July 26, 2024 19:40
## Description
Use `datatest-stable` to find all the Move examples we might want to
build and test, instead of stashing this away in a rust test.

## Test plan

```
sui$ cargo nextest run -p sui-framework-tests --test move_tests
```
It means that the test runs twice, but it runs fine under msim.
@amnn amnn merged commit 3dd9ddd into main Jul 26, 2024
49 checks passed
@amnn amnn deleted the amnn/framework-datatest branch July 26, 2024 20:39
suiwombat pushed a commit that referenced this pull request Sep 16, 2024
## Description
Use `datatest-stable` to find all the Move examples we might want to
build and test, instead of stashing this away in a rust test.

## Test plan

```
sui$ cargo nextest run -p sui-framework-tests --test move_tests
```

+ CI

Closes #18802 

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants